<div class="actions">
    <?php
    echo CHtml::link('Thêm nhà cung cấp mới', array('supplier/create'), array('class' => 'btn btn-small btn-success'));
    ?>
</div>

<?php
$this->renderPartial('_searchForm', array('model' => new SearchForm()));

$this->widget('bootstrap.widgets.TbGridView', array(
    'dataProvider' => $dataProvider,
    'type' => 'striped bordered condensed',
    'columns' => array(
        array('name' => 'supplier_id', 'value' => '$data->supplier_id', 'type' => 'number'),
        array('name' => 'name', 'value' => '$data->name'),
        array('name' => 'phone', 'value' => '!empty($data->address)?$data->address:"--"'),
        array('name' => 'address', 'value' => '!empty($data->address)?$data->address:"--"'),
        //array('name' => 'description', 'value' => '!empty($data->description)?$data->description:"--"'),
        array(// display a column with "view", "update" and "delete" buttons
            'class' => 'CButtonColumn',
            'template' => '{update}{delete}',
        ),
    ),
));